# Enter the function code here

scoreboard players set @s jeb-sheared 1

# correct the loop
execute if data entity @s {Color: 15b} run tag @s add jeb-to-be-white
execute if data entity @s {Color: 15b} run data merge entity @s {Color: 0b}

# color change
execute if data entity @s {Color: 14b} run data merge entity @s {Color: 15b}
execute if data entity @s {Color: 13b} run data merge entity @s {Color: 14b}
execute if data entity @s {Color: 12b} run data merge entity @s {Color: 13b}
execute if data entity @s {Color: 11b} run data merge entity @s {Color: 12b}
execute if data entity @s {Color: 10b} run data merge entity @s {Color: 11b}
execute if data entity @s {Color: 9b} run data merge entity @s {Color: 10b}
execute if data entity @s {Color: 8b} run data merge entity @s {Color: 9b}
execute if data entity @s {Color: 7b} run data merge entity @s {Color: 8b}
execute if data entity @s {Color: 6b} run data merge entity @s {Color: 7b}
execute if data entity @s {Color: 5b} run data merge entity @s {Color: 6b}
execute if data entity @s {Color: 4b} run data merge entity @s {Color: 5b}
execute if data entity @s {Color: 3b} run data merge entity @s {Color: 4b}
execute if data entity @s {Color: 2b} run data merge entity @s {Color: 3b}
execute if data entity @s {Color: 1b} run data merge entity @s {Color: 2b}
execute if data entity @s {Color: 0b} if entity @s[tag=!jeb-to-be-white] run data merge entity @s {Color: 1b}

# correct finished
tag @s[tag=jeb-to-be-white] remove jeb-to-be-white